// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  app: {
    head: {
      titleTemplate: "%s - Nuxt3 | hahaha",
      title: "nuxt3-demo",
      charset: "utf-8",
      htmlAttrs: {
        lang: "zh-CN",
      },
      meta: [
        { name: "keywords", content: "seo1" },
        { name: "description", content: "seo2" },
      ],
      link: [
        {
          rel: "icon",
          href: "https://cn.vuejs.org/logo.svg",
        },
      ],
    },
  },
  devtools: { enabled: true },
  css: ["~/assets/css/main.css"],
   build: { transpile: ['naive-ui', "vueuc"] },
  imports: {
    dirs: ["apis"],
  },
  modules: ["nuxtjs-naive-ui", "nuxt-windicss"],
  // 打包：缩小，关闭sourceMap生成
  nitro: {
    minify: true,
    sourceMap: false,
  },
});
